//package com.lq.order.listener;
//
//import com.lq.order.config.RabbitConfig;
//import com.lq.order.entity.Order;
//import com.lq.order.service.IOrderService;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//@Component
//public class OrderMessageListener {
//
//    @Autowired
//    private IOrderService orderService;
//
//    /**
//     * 监听订单创建消息
//     * @param order 订单信息
//     */
//    @RabbitListener(queues = RabbitConfig.ORDER_QUEUE)
//    public void handleOrderCreate(Order order) {
//        // 处理订单创建逻辑
//        System.out.println("接收到订单创建消息: " + order.getOrderNo());
//        // 这里可以添加实际的订单处理逻辑
//    }
//}